package xyz.nesting.example.dao.mysql;

import org.apache.ibatis.annotations.Param;
import xyz.nesting.example.domain.City;

/**
 * 城市 DAO 接口类
 *
 * Created by bysocket on 07/02/2017.
 */
public interface CityDao {

    /**
     * 根据城市名称，查询城市信息
     *
     * @param cityName 城市名
     */
    City findByName(@Param("cityName") String cityName);

	/**
	 * @param city
	 * @return
	 */
	void addCity(@Param("provinceId") Long provinceId, @Param("cityName") String cityName, @Param("description") String description);
}
